<?php 
declare (strict_types = 1);
namespace app\api\controller;
use app\common\controller\Api;
use think\Request;
class PostClass extends Api
{
    //用户端-帖子分类
    public function user_index()
    {
        $data = $this->model->where('type',1)->select()->toArray();
        return datasuccess($data);
    }
}